<template>
    <el-main>
        <el-main class="ep-body">
            <!--<epl-top-bar showCompany companyType="COMPANY_AAB000_EXACT">-->
            <!--<ep-button size="small" name="打印"></ep-button>-->
            <!--<ep-button size="small" name="刷新"></ep-button>-->
            <!--</epl-top-bar>-->
            <!--<epl-CpInsureRegPanel mt="10" p="H" detail-path="/business/d100insiup/d71query/CpQueryAll"></epl-CpInsureRegPanel>-->

            <epl-top-bar showCompany  companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP"
                         :datas="{formData: form,panel: panel}" >
                <ep-button size="small" name="打印"></ep-button>
                <el-button size="small" @click="clear" >刷新</el-button>
            </epl-top-bar>
            <epl-userMessage idCount="1" dataType="company"  isCodeType isEdit="1"   :panel="panel">
            </epl-userMessage>

            <el-collapse v-model="activeNames" >
             <el-form :model="form" :rules="rules"  ref="form">
                <el-collapse-item  title="请输入单位基本信息" name="1">
                    <el-card class="ep-card">
                            <el-row >
                                <ep-input colspan="8" label="统一社会信用代码" name="bab010" :property="form.bab010"
                                          placeholder="请输入统一社会信用代码" p="R" isChange
                                          rules="this.$localRules.checkBAB010"
                                          :datas="{formData: form,tableData1:tableData1}"></ep-input>

                                <ep-input colspan="16" label="单位名称" name="aab069" :property="form.aab069"
                                          placeholder="请输入单位名称" p="R"  isChange
                                          :datas="{formData: form,tableData1:tableData1}" ></ep-input>
                            </el-row>
                            <el-row >
                                <ep-select colspan="8" label="行政区划" name="aab301" :property="form.aab301"
                                           placeholder="请选择行政区划" p="R" codetype="AAB301"
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="隶属关系" name="aab021" :property="form.aab021"
                                           placeholder="请选择隶属关系" p="R"  codetype="AAB021"
                                           :datas="{formData:form}" ></ep-select>
                            </el-row>

                    </el-card>
                </el-collapse-item>

                <el-card class="ep-card">
                    <ep-title>请选择险种信息</ep-title>
                    <el-row>
                        <ep-table :data="tableData1" ref="tableData1"  border style="width: 100%;" rowDbClick>
                            <!--<el-table-column type="selection" width="55"></el-table-column>-->
                            <ep-table-column editor="checkbox" name="checked" header="选择" width="55"></ep-table-column>
                            <ep-table-column editor="select" edited name="aae140" codetype="AAE140" header="参保险种"></ep-table-column>
                            <ep-table-column editor="select" edited name="aaz289" header="征缴档次" codetype="AAZ289"></ep-table-column>
                            <ep-table-column editor="select" edited name="aab033" header="征收方式" width="300" codetype="AAB033"></ep-table-column>
                        </ep-table>
                    </el-row>
                    <div style="margin: 15px 0;"></div>
                    <el-row type="flex" justify="center">
                        <ep-saveButton id="" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                       :datas="{panel:panel,formData: form,
                                           tableData1:tableData1}" name="保存"></ep-saveButton>

                    </el-row>
                </el-card>

				 </el-form>
            </el-collapse>

        </el-main>
    </el-main>
</template>
<script src="../js/CpInsureRegAcceptJS.js"></script>
<style lang="less" scoped>

</style>
